//
//  BindingBikeViewController.m
//  SITABLE
//
//  Created by songjun on 16/9/19.
//  Copyright © 2016年 Sita. All rights reserved.
//

#import "BindingBikeViewController.h"

@interface BindingBikeViewController ()

@end

@implementation BindingBikeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = NSLocalizedStringFromTable(@"BindingCars", @"InfoPlist", nil);
    UITapGestureRecognizer *tapToGes = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapToGesAction)];
    [self.view addGestureRecognizer:tapToGes];
}

-(void)tapToGesAction
{
    [_bikecodeTf resignFirstResponder];
    [_vinCodeTf resignFirstResponder];
}


-(void)thisIsTheScanValue:(NSString *)scanValue
{
    if (self.isBikeNumber) {
        _bikecodeTf.text = scanValue;
    }else{
        _vinCodeTf.text = scanValue;
    }

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}


- (IBAction)bikecodeBtnAcntion:(UIButton *)sender
{
    SaoYiSaoViewController *sao = [[SaoYiSaoViewController alloc] init];
    sao.isBikeNumber = YES;
    self.isBikeNumber = YES;
    sao.scanValueDelegate = self;
    [self presentViewController:sao animated:YES completion:nil];
}
- (IBAction)vincodePwdAction:(UIButton *)sender
{
    SaoYiSaoViewController *sao = [[SaoYiSaoViewController alloc] init];
    sao.scanValueDelegate = self;
    self.isBikeNumber = NO;
    [self presentViewController:sao animated:YES completion:nil];
}
- (IBAction)bindingYesAciton:(UIButton *)sender {
}
@end
